﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Mapping;
using NHibernate;
using FluentNHibernate.Data;

namespace BankCreditPortfolio.DAL.Entities
{
    public class DepositType
    {
        public virtual int DepositTypeId { get; set; }
        public virtual string Title { get; set; }
    }

    public class DepositTypeMap : ClassMap<DepositType>
    {
        public DepositTypeMap()
        {
            Id(x => x.DepositTypeId).GeneratedBy.HiLo("depositType");
            Id(x => x.DepositTypeId).Unique();
            Map(x => x.Title);
            Table("DepositType");
        }
    }
}
